//
//  TripsModel.m
//  chanyou
//
//  Created by leon on 14/12/31.
//  Copyright (c) 2014年 wanli. All rights reserved.
//

#import "TripsModel.h"

@implementation TripsModel

- (void)dealloc
{
    [_id release];
    [_name release];
    [_photos_count release];
    [_start_date release];
    [_days release];
    [_front_cover_photo_url release];
    [_comments_count release];
    [_like_count release];
    [_trip_days release];
    [_user release];
    [_notes_likes_comments release];
    [super dealloc];
}

- (instancetype)initWithId:(NSNumber *)id name:(NSString *)name front_cover_photo_url:(NSString *)front_cover_photo_url
{
    self = [super init];
    if (self){
        self.name = name;
        self.front_cover_photo_url = front_cover_photo_url;
        self.id = id;
    }
    return self;
}

+ (instancetype)tripsWithId:(NSNumber *)id name:(NSString *)name front_cover_photo_url:(NSString *)front_cover_photo_url
{
    TripsModel *trips = [[TripsModel alloc] initWithId:id name:name front_cover_photo_url:front_cover_photo_url];
    return [trips autorelease];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
- (id)valueForUndefinedKey:(NSString *)key
{
    return @"";
}



@end
